package com.cjm.one.model.system.vo;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class LoginVo  {


    private String username;

    @Email(message = "邮箱格式不正确")
    private String email;

    @Size(min = 6, max = 6, message = "邮箱验证码必须为6位")
    private String smsCode;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String mobile;

    @Size(min = 6, max = 6, message = "短信验证码必须为6位")
    private String mobileCode;


    private String password;


    private String code;


    private String codeKey;

    @Override
    public String toString() {
        return "LoginVo{" +
                "username='" + username + '\'' +
                ", email='" + email + '\'' +
                ", smsCode='" + smsCode + '\'' +
                ", mobile='" + mobile + '\'' +
                ", mobileCode='" + mobileCode + '\'' +
                ", password='" + password + '\'' +
                ", code='" + code + '\'' +
                ", codeKey='" + codeKey + '\'' +
                '}';
    }
}
